<?php
/*
Bitsand - a web-based booking system for LRP events
Copyright (C) 2006 - 2008 The Bitsand Project (http://bitsand.googlecode.com/)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

include ('../inc/inc_head_db.php');
include ('../inc/inc_admin.php');
include ('../inc/inc_head_html.php');
?>

<h1><?php echo TITLE?> - Admin</h1>

<h3>Booking Data</h3>

<p>
The reports below are based on the people that have booked for the upcoming event <i>only</i>. People that have confirmed IC &amp; OOC details, and been marked as paid are considered to have booked. The &quot;Mark payments received&quot; report obviously only includes people that haven't been marked as paid.
</p>

<p>
<?php
HelpLink ('help_add_new_user.php');
echo " <a href = 'admin_adduser.php'>Add a new user</a> (use when players book with paper form)<br />\n";
HelpLink ('help_payments_received.php');
echo " <a href = 'admin_markpaid.php'>Mark payments received</a>, or to pay on the gate<br />\n";
HelpLink ('help_assign_bunks.php');
echo " <a href = 'admin_bunks.php'>Assign bunks</a><br />\n";
HelpLink ('help_request_meal_ticket.php');
echo " <a href = 'admin_mealticket.php'>Manage meal tickets</a><br />\n";
echo "<a href = 'admin_amount.php'>Manage amounts paid</a><br />\n";
if (RPG_NAME == 'LT')
	echo "<a href = 'admin_cards.php'>Cards, Lore Sheets, Meal Tickets &amp; bunks required</a><br />\n";
else
	echo "<a href = 'admin_cards.php'>Meal Tickets &amp; bunks required</a><br />\n";
?>
<a href = "admin_bookings_csv.php">Save bookings to csv</a> (use as a mail merge source for creating character cards, etc)<br />
<a href = "admin_bookingstatus.php">Bookings Status</a><br />
<a href = "admin_signsheet.php">Signature &amp; Car Registration sheet</a> - print this, then ask players to sign it as they arrive<br />
<a href = "admin_booked.php">Players booked</a> - includes car registrations, and has links to full data of any player<br />
<a href = "admin_finalconfirmation.php">Final confirmation</a> - send an e-mail to all booked players as a final confirmation of their booking.<br />
</p>

<h3>All Data</h3>

<p>
The reports below are based on <i>all</i> the data in the database, not just those people that have booked for the upcoming event.
</p>

<p>
<a href = "admin_search.php">Search</a> - includes links to edit player's IC and/or OOC details or change their password<br>
<a href = 'admin_disabled.php'>Disabled accounts</a> - includes links to reset the password and re-enable the account<br>
Characters: <a href = "admin_chars_export.php?action=save">Save to csv</a> : <a href = "admin_chars_export.php?action=view">View online</a><br>
Players: <a href = "admin_players_export.php?action=save">Save to csv</a> : <a href = "admin_players_export.php?action=view">View online</a><br>
<?php
if (RPG_NAME == 'LT')
	echo "<a href = 'admin_notes.php'>Players with admin notes or illegal combinations of skills</a><br>\n";
else
	echo "<a href = 'admin_notes.php'>Players with admin notes</a><br>\n";
?>
</p>

<h3>Site Admin etc</h3>

<p>
<a href = "admin_faq.php">Add/edit/delete FAQ items</a><br>
<?php
if (RPG_NAME == 'LT') {
	echo "<a href = 'admin_ancestors.php'>Add/edit/delete ancestors</a><br>\n";
	echo "<a href = 'admin_groups.php'>Add/edit/delete groups</a><br>\n";
	echo "<a href = 'admin_locations.php'>Add/edit/delete locations</a><br>\n";
}
?>
</p>

<p>
<a href = 'admin_changeconfig.php'>Change system configuration settings</a><br>
<a href = 'admin_config_db_test.php'>Check system configuration settings</a>
</p>

<?php
if (ROOT_USER_ID == $PLAYER_ID) {
	echo "<p>\n<b>root user pages</b><br>\n";
	echo "<a href = 'root_accesslog.php'>Query access log</a><br>\n";
	echo "<a href = 'root_admins.php'>List and create admin users</a><br>\n";
	echo "<a href = 'root_oldlogins.php'>View (and optionally delete) users that have not logged in recently</a><br>\n";
	echo "<a href = 'root_emptybookings.php'>Remove all bookings</a><br>\n";
	echo "<a href = 'root_keychange.php'>Change database encryption key or password salt</a><br>\n";
	echo "</p>\n";
}

include ('../inc/inc_foot.php');
?>
